package com.hockeo.shared.rpc.command;

/**
 * Default command response. TODO overriding instructions
 *
 * @param <T> the type of the returned result
 * @version $Id$
 * @author jjanke
 */
public abstract class AbstractBaseResponse<T> implements IResponse
{
  private T d_value;

  /** Argumentless default constructor for GWT/RPC. */
  protected AbstractBaseResponse()
  {}

  /**
   * Creates a new response.
   *
   * @param value the response's value
   */
  protected AbstractBaseResponse( T value )
  {
    d_value = value;
  }

  /**
   * Returns the response's unique value.
   */
  public T get()
  {
    return d_value;
  }
}
